﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class Log
    {
        #region 属性
        private int _id;
        private int _employeeId;
        private DateTime _time;
        private string _description;
        #endregion

        #region 构造
        public Log()
        {
            _employeeId          = 0;
            _time                = DateTime.Now;
            _description         = null;
        }

        public Log(int employeeId)
        {
            _employeeId          = employeeId;
            _time                = DateTime.Now;
            _description         = null;
        }

        public Log(int employeeId, string description)
        {
            _employeeId          = employeeId;
            _time                = DateTime.Now; ;
            _description         = description;
        }

        public Log(int employeeId, DateTime time, string description)
        {
            _employeeId          = employeeId;
            _time                = time;
            _description         = description;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int EmployeeId
        {
            get { return _employeeId; }
            set { _employeeId = value; }
        }

        public DateTime Time
        {
            get { return _time; }
            set { _time = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
    }
}
